package com.yiren.backstage.judge.services.standard;

import com.yiren.backstage.currency.bean.GpsInfoBean;
import com.yiren.backstage.currency.bean.LinePointBean;

import java.util.List;

/**
 * Time:2022/3/10 16:29
 * Author:xiaozan
 * Description:自动播报线程服务接口
 */
public interface IAutoPlayService {

    /**
     * 是否播报线路点位
     *
     * @param realGpsInfo      实时gps对象
     * @param currentLinePoint 当前线路点位对象
     * @return
     */
    boolean isPlayLinePoint(GpsInfoBean realGpsInfo, LinePointBean currentLinePoint);

    /**
     * 释放已执行点位
     *
     * @param executePoints 已执行点位集合
     * @param realGpsInfo   当前gpsinfo对象
     */
    LinePointBean releaseLinePoint(List<LinePointBean> executePoints, GpsInfoBean realGpsInfo);

    /**
     * 当前点位是否释放
     *
     * @param executePoints    已执行点位集合
     * @param currentLinePoint 当前点位
     * @return
     */
    boolean isRelease(List<LinePointBean> executePoints, LinePointBean currentLinePoint);
}
